<?php
include ('top.ajax.php');

if(isset($_POST['id'])) {
$db=Database::getInstance();
$sql="DELETE FROM brands_vendors_link WHERE vendor_id='".$_POST['id']."'";
$result=$db->query($sql);
$vendor=new Vendor($_POST['id']); $vendor->delete();


}

?>